<?php
	require_once($_SERVER['DOCUMENT_ROOT'].'/ukkepuk/source/php/classes/beans/Kid.php'); 
	require_once($_SERVER['DOCUMENT_ROOT'].'/ukkepuk/source/php/classes/dao/UkkepukDao.php'); 
	$ukkepuk = new UkkepukDao();
?>

<html>
	<head>
		<script src="/ukkepuk/source/html/scripts/jquery-1.7.1.js"></script>
		<script src="/ukkepuk/source/html/scripts/topmenu.js"></script>
		
		<style type="text/css" media="all">
			@import url("/ukkepuk/source/html/css/topmenu.css");
		</style>
	</head>
	<body>
		<table>
			<tr>
				<td>
					<?php require_once($_SERVER['DOCUMENT_ROOT'].'/ukkepuk\source\php\panels\topmenu.php'); ?>
				</td>
			</tr>
			<tr>
				<td>
					<div class="content">
						<table>
						
						<?php
							foreach($ukkepuk->readAllKids() as $kid){
								echo "<tr>";
								echo "<td><image src=\"".'/ukkepuk/webcontent/images/notfound.jpg' . "\" height=\"100px\"></td><td>".$kid->name."</td><td>".$kid->firstname."</td>";
								echo "<td><a href=\"javascript:void(0)\" >edit</a></td>";
								echo "</tr>";
							}
						?>
						
						</table>
					</div>
				</td>
			</tr>
		</table>
	</body>
</html>